package com.homedo.odin.solution.dao;

import com.homedo.core.common.base.dao.BaseDao;
import com.homedo.odin.solution.model.entity.UserSpecification;
import org.apache.ibatis.annotations.Param;

/**
 * <p> 用户规范下载收藏关系表 Mapper 接口 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
public interface UserSpecificationMapper extends BaseDao<UserSpecification> {

    UserSpecification getUserSpecification(@Param("userId") Integer userId,
            @Param("specificationId") Long specificationId, @Param("actionType") Integer actionType);

    Integer queryFreeSpecificationDownloadCount(@Param("userId") Integer userId,
            @Param("actionType") Integer actionType);
}